﻿using System.Text.Json.Serialization;
using Simple.Common.Helpers;

namespace Simple.Services;

public class CourseTypeModel : ModelBase
{
    /// <summary>
    /// 主键
    /// </summary>
    public Guid? Id { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 是否可见
    /// </summary>
    public bool? IsPublic { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    public string? Description { get; set; }


    public override void ConfigureMapper(Profile profile)
    {
        profile.CreateMap<CourseType, CourseTypeModel>();

        profile.CreateMap<CourseTypeModel, CourseType>();

    }

}
